<%@ page contentType="text/html;charset=UTF-8" pageEncoding="utf-8" language="java" %>
<header class="main-header">
    <a href="all-admin-index.html" class="logo">
        <span class="logo-mini"><img src="../img/logo.png"></span>
        <span class="logo-lg">
                    <img src="../img/export.png">
                    <i> SaaS外贸进出口平台</i>
                </span>
    </a>


    <nav class="navbar navbar-static-top">
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas"  role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <div class="navbar-custom-menu">
            <ul  class="nav navbar-nav" >
                <li class="dropdown messages-menu">
                    <a href="#" class="dropdown-toggle"data-toggle="dropdown" >
                        <i class="fa fa-map-o"></i>
                        <span class="label label-success">3</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="header">附加功能</li>
                        <li>
                            <ul class="menu">
                                <li>
                                    <a href="#">
                                        <div class="pull-left"onclick='location.href="baidu.html"'>
                                            <img src="../img/2diqiu.jpg" class="img-circle" alt="User Image">
                                        </div>
                                        <h4>
                                           地球仪
                                            <small><i class="fa fa-clock-o"></i> 5 分钟前</small>
                                        </h4>
                                        <p>3d地球仪查看</p>
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <div class="pull-left"onclick='location.href="yemian.html"'>
                                            <img src="../img/dw2.jpg" class="img-circle" alt="User Image">
                                        </div>
                                        <h4>
                                            定位地图
                                            <small><i class="fa fa-clock-o"></i> 2 小时前</small>
                                        </h4>
                                        <p>定位查看</p>
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="footer"><a href="#">See All Messages</a></li>
                    </ul>
                </li>
        <div class="navbar-custom-menu" display:inline-block;>
            <ul class="nav navbar-nav">
                <%--<div id="weather-v2-plugin-simple" style="display: inline-block; width: 200px;float: right;"></div>--%>
                    <div id="weather-v2-plugin-simple"></div>
                    <script>
                        WIDGET = {
                            CONFIG: {
                                "modules": "01234",
                                "background": 1,
                                "tmpColor": "FFFFFF",
                                "tmpSize": 16,
                                "cityColor": "FFFFFF",
                                "citySize": 16,
                                "aqiSize": 16,
                                "weatherIconSize": 24,
                                "alertIconSize": 18,
                                "padding": "10px 10px 10px 10px",
                                "shadow": "1",
                                "language": "auto",
                                "borderRadius": 5,
                                "fixed": "true",
                                "vertical": "middle",
                                "horizontal": "center",
                                "left": "800",
                                "top": "3",
                                "key": "BsuECQEVKK"
                            }
                        }
                    </script>
                    <script src="https://apip.weatherdt.com/simple/static/js/weather-simple-common.js?v=2.0"></script>
                <li class="dropdown messages-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-envelope-o"></i>
                        <span class="label label-success">${data.size()}</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="header">你有${data.size()}个新消息未处理</li>
                        <li>
                            <ul class="menu">
                                <c:forEach  items="${data}" var="item" >
                                    <li>
                                        <a href="/user/feedback/findByFeed.do?id=${item.id}">
                                            <div class="pull-left">
                                                <i class="fa fa-fw fa-envelope"></i>
                                            </div>
                                            <h4>
                                                你有消息未处理:
                                                <small><i class="fa fa-clock-o"></i>${item.create_time}</small>
                                            </h4>
                                            <p>${item.textarea}</p>
                                        </a>
                                    </li>
                                </c:forEach>
                            </ul>
                        </li>
                   <%--     <li class="footer"><a href="#">See All Messages</a></li>--%>
                    </ul>
                </li>

                <!-- Notifications: style can be found in dropdown.less -->
                    <li class="dropdown notifications-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-bell-o"></i>
                            <span class="label label-warning">${olddata.size()}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="header">你有${olddata.size()}个新消息</li>
                            <li>
                                <!-- inner menu: contains the actual data -->
                                <ul class="menu">
                                    <c:forEach  items="${olddata}" var="item" >
                                        <li>
                                            <a href="/user/feedback/findByFeed.do?id=${item.id}">
                                                <div class="pull-left">
                                                    <i class="fa fa-fw fa-check-circle-o"></i>
                                                </div>
                                                <h4>
                                                    你已处理的消息
                                                    <small><i class="fa fa-clock-o"></i>${item.create_time}</small>
                                                </h4>
                                                <p>${item.textarea}</p>
                                            </a>
                                        </li>
                                    </c:forEach>
                                </ul>
                            </li>
                            <%--   <li class="footer"><a href="/user/feedback/list.do">View all</a></li>--%>
                        </ul>
                    </li>
                    <!-- Tasks: style can be found in dropdown.less -->
                    <li class="dropdown tasks-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-flag-o"></i>
                            <span class="label label-danger"></span>
                        </a>

                    </li>
                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="../img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs"> ${sessionScope.user.userName}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="../img/user2-160x160.jpg" class="img-circle" alt="User Image">

                                <p>
                                    ${sessionScope.user.userName}
                                </p>
                            </li>
                            <!-- Menu Body
                    <li class="user-body">
                        <div class="row">
                            <div class="col-xs-4 text-center">
                                <a href="#">Followers</a>
                            </div>
                            <div class="col-xs-4 text-center">
                                <a href="#">Sales</a>
                            </div>
                            <div class="col-xs-4 text-center">
                                <a href="#">Friends</a>
                            </div>
                        </div>
                    </li>-->
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left">
                                <a href="#" class="btn btn-default btn-flat">修改密码</a>
                            </div>
                            <div class="pull-right">
                                <a href="/logout.do" class="btn btn-default btn-flat">注销</a>
                            </div>
                            <div class="tab-pane" id="control-sidebar-settings-tab">
                                <form method="post">

                                    <h3 class="control-sidebar-heading"></h3>
                                    <div class="form-group">
                                        <label class="control-sidebar-subheading">
                                             online2
                                            <input type="checkbox" class="pull-right" checked>
                                        </label>
                                    </div>

                                    <!-- /.form-group -->
                                    <div class="form-group">
                                        <label class="control-sidebar-subheading">
                                            Delete chat history
                                            <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
                                        </label>
                                    </div>
                                    <!-- /.form-group -->
                                </form>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>

        </div>
            </ul>
            </div>
    </nav>

</header>
<!-- 页面头部 /-->

